package training02;

public class Doctor extends Role implements Treat{
    public Doctor() {
    }

    public Doctor(String name, int level) {
        super(name, level);
    }
    public void intro(){
        System.out.println("我是医生\n");
        super.intro();
    }
    @Override
    public void treat(Role role) {
        System.out.println("我是医生，我治疗了" + role);
    }
}
